# -*- coding: utf-8 -*-
# @Time: 2022/4/29 13:46
# @Author: 发抖的小喵喵
# @Email: panyi_20210601@163.com
# @File: 退货订单退费计算.py
# @Project: haixin
# @Software: PyCharm


from test_case.haixin.Method.Post import post_method


def refundFee():
    """
    调用接口查询计算的退款费用同步到我们数据库
    :return:
    """
    url = "https://api-sit.shwoody.com/ma/reOrder/refundFee"

    data = {
        "shopId": "2024",  # shop_number
        "cashNo": "0007",  # 收款机号
        "saleNo": "2024041017571937130"  # 销售流水号
    }

    response = post_method(data, url)
    print("接口响应数据：" + str(response))

    # 若潮豆已生效，查询的时候即冻结了已生效潮豆


if __name__ == "__main__":
    refundFee()
